﻿#region Using directives

using System;
using System.Collections.Generic;
using System.Text;

#endregion

public enum Color
{
  White,
  Gray,
  Black,
}

class Program
{
  static void Main(string[] arguments)
  {
    DateTime start = DateTime.Now;
    getArguments(arguments);
    
		Simulator.Initialize();
		Simulator.Run();
    
    Console.WriteLine("\nTime elapsed: {0} ms", (DateTime.Now - start).TotalMilliseconds);
  }
  
  private static void getArguments(string[] arguments)
  {
    try
    {
			Simulator.Cycles = int.Parse(arguments[0]);
    }
    catch
    {
      Console.Error.WriteLine("Error, please specify number of cycles.");
      System.Environment.Exit(1);
    }
  }
}

